package com.example.dream.talentbase.util.consciousnessmasth.imp;

import com.example.dream.talentbase.util.consciousnessmasth.CS;

import java.util.Map;

/**
 * @className CSImp
 * @Description 意识形态学统计方法工具类
 * @Autor WUAO
 * @Date 2022/8/17 20 42
 */
public class CSImp implements CS {
    @Override
    public Map<String, Double> concentrationA(Map<String, Double> m) {
        if(m.get("羽毛球")!=null){
            m.put("羽毛球",m.get("羽毛球")+0.35);
        }else{
            m.put("羽毛球",0.35);
        }
        if(m.get("摔跤")!=null){
            m.put("摔跤",m.get("摔跤")+0.35);
        }else{
            m.put("摔跤",0.35);
        }
        if(m.get("乒乓球")!=null){
            m.put("乒乓球",m.get("羽毛球")+0.35);
        }else{
            m.put("乒乓球",0.35);
        }
        if(m.get("排球")!=null){
            m.put("排球",m.get("排球")+0.35);
        }else{
            m.put("排球",0.35);
        }
        if(m.get("散打")!=null){
            m.put("散打",m.get("散打")+0.35);
        }else{
            m.put("散打",0.35);
        }
        if(m.get("径赛短跑")!=null){
            m.put("径赛短跑",m.get("径赛短跑")+0.35);
        }else{
            m.put("径赛短跑",0.35);
        }
        if(m.get("篮球")!=null){
            m.put("篮球",m.get("篮球")+0.35);
        }else{
            m.put("篮球",0.35);
        }
        if(m.get("足球")!=null){
            m.put("足球",m.get("足球")+0.35);
        }else{
            m.put("足球",0.35);
        }
        if(m.get("田赛投掷类")!=null){
            m.put("田赛投掷类",m.get("田赛投掷类")+0.35);
        }else{
            m.put("田赛投掷类",0.35);
        }
        if(m.get("田赛跳跃类")!=null){
            m.put("田赛跳跃类",m.get("田赛跳跃类")+0.35);
        }else{
            m.put("田赛跳跃类",0.35);
        }
        if(m.get("体育舞蹈")!=null){
            m.put("体育舞蹈",m.get("体育舞蹈")+0.35);
        }else{
            m.put("体育舞蹈",0.35);
        }
        if(m.get("武术")!=null){
            m.put("武术",m.get("武术")+0.35);
        }else{
            m.put("武术",0.35);
        }
        if(m.get("举重")!=null){
            m.put("举重",m.get("举重")+0.35);
        }else{
            m.put("举重",0.35);
        }
        if(m.get("体操")!=null){
            m.put("体操",m.get("体操")+0.35);
        }else{
            m.put("体操",0.35);
        }
        if(m.get("游泳")!=null){
            m.put("游泳",m.get("游泳")+0.35);
        }else{
            m.put("游泳",0.35);
        }
        if(m.get("径赛中长跑")!=null){
            m.put("径赛中长跑",m.get("径赛中长跑")+0.35);
        }else{
            m.put("径赛中长跑",0.35);
        }

        return m;
    }

    @Override
    public Map<String, Double> concentrationB(Map<String, Double> m) {
        if(m.get("武术")!=null){
            m.put("武术",m.get("武术")+0.35);
        }else{
            m.put("武术",0.35);
        }
        if(m.get("体操")!=null){
            m.put("体操",m.get("体操")+0.35);
        }else{
            m.put("体操",0.35);
        }
        if(m.get("体育舞蹈")!=null){
            m.put("体育舞蹈",m.get("体育舞蹈")+0.35);
        }else{
            m.put("体育舞蹈",0.35);
        }
        if(m.get("散打")!=null){
            m.put("散打",m.get("散打")+0.35);
        }else{
            m.put("散打",0.35);
        }
        if(m.get("篮球")!=null){
            m.put("篮球",m.get("篮球")+0.35);
        }else{
            m.put("篮球",0.35);
        }
        if(m.get("排球")!=null){
            m.put("排球",m.get("排球")+0.35);
        }else{
            m.put("排球",0.35);
        }
        if(m.get("足球")!=null){
            m.put("足球",m.get("足球")+0.35);
        }else{
            m.put("足球",0.35);
        }
        return m;
    }

    @Override
    public Map<String, Double> concentrationC(Map<String, Double> m) {
        if(m.get("田赛跳跃类")!=null){
            m.put("田赛跳跃类",m.get("田赛跳跃类")+0.35);
        }else{
            m.put("田赛跳跃类",0.35);
        }
        if(m.get("田赛投掷类")!=null){
            m.put("田赛投掷类",m.get("田赛投掷类")+0.35);
        }else{
            m.put("田赛投掷类",0.35);
        }
        if(m.get("举重")!=null){
            m.put("举重",m.get("举重")+0.35);
        }else{
            m.put("举重",0.35);
        }
        if(m.get("游泳")!=null){
            m.put("游泳",m.get("游泳")+0.35);
        }else{
            m.put("游泳",0.35);
        }
        return m;
    }

    @Override
    public Map<String, Double> warA(Map<String, Double> m) {
        if(m.get("篮球")!=null){
            m.put("篮球",m.get("篮球")+0.35);
        }else{
            m.put("篮球",0.35);
        }
        if(m.get("足球")!=null){
            m.put("足球",m.get("足球")+0.35);
        }else{
            m.put("足球",0.35);
        }
        if(m.get("排球")!=null){
            m.put("排球",m.get("排球")+0.35);
        }else{
            m.put("排球",0.35);
        }
        if(m.get("散打")!=null){
            m.put("散打",m.get("散打")+0.35);
        }else{
            m.put("散打",0.35);
        }
        if(m.get("乒乓球")!=null){
            m.put("乒乓球",m.get("乒乓球")+0.35);
        }else{
            m.put("乒乓球",0.35);
        }
        if(m.get("羽毛球")!=null){
            m.put("羽毛球",m.get("羽毛球")+0.35);
        }else{
            m.put("羽毛球",0.35);
        }
        if(m.get("摔跤")!=null){
            m.put("摔跤",m.get("摔跤")+0.35);
        }else{
            m.put("摔跤",0.35);
        }
        return m;
    }

    @Override
    public Map<String, Double> warB(Map<String, Double> m) {
        if(m.get("游泳")!=null){
            m.put("游泳",m.get("游泳")+0.35);
        }else{
            m.put("游泳",0.35);
        }
        if(m.get("田赛投掷类")!=null){
            m.put("田赛投掷类",m.get("田赛投掷类")+0.35);
        }else{
            m.put("田赛投掷类",0.35);
        }
        if(m.get("田赛跳跃类")!=null){
            m.put("田赛跳跃类",m.get("田赛跳跃类")+0.35);
        }else{
            m.put("田赛跳跃类",0.35);
        }
        return m;
    }

    @Override
    public Map<String, Double> warC(Map<String, Double> m) {
        if(m.get("体操")!=null){
            m.put("体操",m.get("体操")+0.35);
        }else{
            m.put("体操",0.35);
        }
        if(m.get("径赛短跑")!=null){
            m.put("径赛短跑",m.get("径赛短跑")+0.35);
        }else{
            m.put("径赛短跑",0.35);
        }
        if(m.get("体育舞蹈")!=null){
            m.put("体育舞蹈",m.get("体育舞蹈")+0.35);
        }else{
            m.put("体育舞蹈",0.35);
        }
        if(m.get("武术")!=null){
            m.put("武术",m.get("武术")+0.35);
        }else{
            m.put("武术",0.35);
        }
        if(m.get("举重")!=null){
            m.put("举重",m.get("举重")+0.35);
        }else{
            m.put("举重",0.35);
        }
        if(m.get("径赛中长跑")!=null){
            m.put("径赛中长跑",m.get("径赛中长跑")+0.35);
        }else{
            m.put("径赛中长跑",0.35);
        }
        return m;
    }

    @Override
    public Map<String, Double> teamA(Map<String, Double> m) {
        if(m.get("足球")!=null){
            m.put("足球",m.get("足球")+0.35);
        }else{
            m.put("足球",0.35);
        }
        if(m.get("排球")!=null){
            m.put("排球",m.get("排球")+0.35);
        }else{
            m.put("排球",0.35);
        }
        if(m.get("篮球")!=null){
            m.put("篮球",m.get("篮球")+0.35);
        }else{
            m.put("篮球",0.35);
        }
        return m;
    }

    @Override
    public Map<String, Double> teamB(Map<String, Double> m) {
        if(m.get("羽毛球")!=null){
            m.put("羽毛球",m.get("羽毛球")+0.35);
        }else{
            m.put("羽毛球",0.35);
        }
        if(m.get("游泳")!=null){
            m.put("游泳",m.get("游泳")+0.35);
        }else{
            m.put("游泳",0.35);
        }
        if(m.get("乒乓球")!=null){
            m.put("乒乓球",m.get("乒乓球")+0.35);
        }else{
            m.put("乒乓球",0.35);
        }
        if(m.get("体操")!=null){
            m.put("体操",m.get("体操")+0.35);
        }else{
            m.put("体操",0.35);
        }
        if(m.get("散打")!=null){
            m.put("散打",m.get("散打")+0.35);
        }else{
            m.put("散打",0.35);
        }
        if(m.get("武术")!=null){
            m.put("武术",m.get("武术")+0.35);
        }else{
            m.put("武术",0.35);
        }
        return m;
    }

    @Override
    public Map<String, Double> teamC(Map<String, Double> m) {
        if(m.get("举重")!=null){
            m.put("举重",m.get("举重")+0.35);
        }else{
            m.put("举重",0.35);
        }
        if(m.get("摔跤")!=null){
            m.put("摔跤",m.get("摔跤")+0.35);
        }else{
            m.put("摔跤",0.35);
        }
        if(m.get("举重")!=null){
            m.put("举重",m.get("举重")+0.35);
        }else{
            m.put("举重",0.35);
        }
        if(m.get("田赛投掷类")!=null){
            m.put("田赛投掷类",m.get("田赛投掷类")+0.35);
        }else{
            m.put("田赛投掷类",0.35);
        }
        if(m.get("田赛跳跃类")!=null){
            m.put("田赛跳跃类",m.get("田赛跳跃类")+0.35);
        }else{
            m.put("田赛跳跃类",0.35);
        }
        return m;
    }

    @Override
    public Map<String, Double> willA(Map<String, Double> m) {
        String[] s={"径赛中长跑类","游泳","体操","举重","田赛跳跃类","田赛投掷类","径赛短跑类","帆船","赛艇","马术"};
        for (int i = 0; i < s.length; i++) {
            if(m.get(s[i])!=null){
                m.put(s[i],m.get(s[i])+0.35);
            }else{
                m.put(s[i],0.35);
            }
        }
        return m;
    }

    @Override
    public Map<String, Double> willB(Map<String, Double> m) {
        String[] s={"排球","摔跤","篮球","足球","网球","高尔夫"};
        for (int i = 0; i < s.length; i++) {
            if(m.get(s[i])!=null){
                m.put(s[i],m.get(s[i])+0.35);
            }else{
                m.put(s[i],0.35);
            }
        }
        return m;
    }

    @Override
    public Map<String, Double> willC(Map<String, Double> m) {
        String[] s={"体操","举重","田赛跳跃类","田赛投掷类","滑板","滑雪","冰壶","帆船","马术"};
        for (int i = 0; i < s.length; i++) {
            if(m.get(s[i])!=null){
                m.put(s[i],m.get(s[i])+0.35);
            }else{
                m.put(s[i],0.35);
            }
        }
        return m;
    }

    @Override
    public Map<String, Double> willD(Map<String, Double> m) {
        String[] s={"排球","摔跤","篮球","足球","滑板","滑雪","高尔夫","网球","马术"};
        for (int i = 0; i < s.length; i++) {
            if(m.get(s[i])!=null){
                m.put(s[i],m.get(s[i])+0.35);
            }else{
                m.put(s[i],0.35);
            }
        }
        return m;
    }

    @Override
    public Map<String, Double> mentallyA(Map<String, Double> m) {
        if(m.get("足球前锋")!=null){
            m.put("足球前锋",m.get("足球前锋")+0.35);
        }else{
            m.put("足球前锋",0.35);
        }
        if(m.get("游泳短泳")!=null){
            m.put("游泳短泳",m.get("游泳短泳")+0.35);
        }else{
            m.put("游泳短泳",0.35);
        }
        return m;
    }

    @Override
    public Map<String, Double> mentallyB(Map<String, Double> m) {
        if(m.get("径赛短跑类")!=null){
            m.put("径赛短跑类",m.get("径赛短跑类")+0.35);
        }else{
            m.put("径赛短跑类",0.35);
        }
        if(m.get("跳高")!=null){
            m.put("跳高",m.get("跳高")+0.35);
        }else{
            m.put("跳高",0.35);
        }
        if(m.get("篮球前锋")!=null){
            m.put("篮球前锋",m.get("篮球前锋")+0.35);
        }else{
            m.put("篮球前锋",0.35);
        }
        if(m.get("游泳短泳")!=null){
            m.put("游泳短泳",m.get("游泳短泳")+0.35);
        }else{
            m.put("游泳短泳",0.35);
        }

        if(m.get("径赛中长跑")!=null){
            m.put("径赛中长跑",m.get("径赛中长跑")+0.35);
        }else{
            m.put("径赛中长跑",0.35);
        }
        if(m.get("跳高")!=null){
            m.put("跳高",m.get("跳高")+0.35);
        }else{
            m.put("跳高",0.35);
        }
        if(m.get("体操")!=null){
            m.put("体操",m.get("体操")+0.35);
        }else{
            m.put("体操",0.35);
        }
        if(m.get("篮球前锋")!=null){
            m.put("篮球前锋",m.get("篮球前锋")+0.35);
        }else{
            m.put("篮球前锋",0.35);
        }
        if(m.get("足球中锋")!=null){
            m.put("足球中锋",m.get("足球中锋")+0.35);
        }else{
            m.put("足球中锋",0.35);
        }
        if(m.get("乒乓球")!=null){
            m.put("乒乓球",m.get("乒乓球")+0.35);
        }else{
            m.put("乒乓球",0.35);
        }
        if(m.get("羽毛球")!=null){
            m.put("羽毛球",m.get("羽毛球")+0.35);
        }else{
            m.put("羽毛球",0.35);
        }
        if(m.get("武术")!=null){
            m.put("武术",m.get("武术")+0.35);
        }else{
            m.put("武术",0.35);
        }
        if(m.get("跳远")!=null){
            m.put("跳远",m.get("跳远")+0.35);
        }else{
            m.put("跳远",0.35);
        }
        if(m.get("体操")!=null){
            m.put("体操",m.get("体操")+0.35);
        }else{
            m.put("体操",0.35);
        }
        if(m.get("篮球中锋")!=null){
            m.put("篮球中锋",m.get("篮球中锋")+0.35);
        }else{
            m.put("篮球中锋",0.35);
        }
        if(m.get("排球")!=null){
            m.put("排球",m.get("排球")+0.35);
        }else{
            m.put("排球",0.35);
        }
        if(m.get("足球后卫")!=null){
            m.put("足球后卫",m.get("足球后卫")+0.35);
        }else{
            m.put("足球后卫",0.35);
        }
        if(m.get("游泳长泳")!=null){
            m.put("游泳长泳",m.get("游泳长泳")+0.35);
        }else{
            m.put("游泳长泳",0.35);
        }
        if(m.get("乒乓球")!=null){
            m.put("乒乓球",m.get("乒乓球")+0.35);
        }else{
            m.put("乒乓球",0.35);
        }
        if(m.get("羽毛球")!=null){
            m.put("羽毛球",m.get("羽毛球")+0.35);
        }else{
            m.put("羽毛球",0.35);
        }
        if(m.get("武术")!=null){
            m.put("武术",m.get("武术")+0.35);
        }else{
            m.put("武术",0.35);
        }
        return m;
    }

    @Override
    public Map<String, Double> mentallyC(Map<String, Double> m) {
        if(m.get("径赛中长跑")!=null){
            m.put("径赛中长跑",m.get("径赛中长跑")+0.35);
        }else{
            m.put("径赛中长跑",0.35);
        }
        if(m.get("跳远")!=null){
            m.put("跳远",m.get("跳远")+0.35);
        }else{
            m.put("跳远",0.35);
        }
        if(m.get("田赛投掷")!=null){
            m.put("田赛投掷",m.get("田赛投掷")+0.35);
        }else{
            m.put("田赛投掷",0.35);
        }
        if(m.get("体操")!=null){
            m.put("体操",m.get("体操")+0.35);
        }else{
            m.put("体操",0.35);
        }
        if(m.get("篮球后卫")!=null){
            m.put("篮球后卫",m.get("篮球后卫")+0.35);
        }else{
            m.put("篮球后卫",0.35);
        }
        if(m.get("排球")!=null){
            m.put("排球",m.get("排球")+0.35);
        }else{
            m.put("排球",0.35);
        }
        if(m.get("足球后卫")!=null){
            m.put("足球后卫",m.get("足球后卫")+0.35);
        }else{
            m.put("足球后卫",0.35);
        }
        if(m.get("游泳长泳")!=null){
            m.put("游泳长泳",m.get("游泳长泳")+0.35);
        }else{
            m.put("游泳长泳",0.35);
        }
        if(m.get("乒乓球")!=null){
            m.put("乒乓球",m.get("乒乓球")+0.35);
        }else{
            m.put("乒乓球",0.35);
        }
        if(m.get("羽毛球")!=null){
            m.put("羽毛球",m.get("羽毛球")+0.35);
        }else{
            m.put("羽毛球",0.35);
        }
        if(m.get("武术")!=null){
            m.put("武术",m.get("武术")+0.35);
        }else{
            m.put("武术",0.35);
        }
        if(m.get("田赛投掷")!=null){
            m.put("田赛投掷",m.get("田赛投掷")+0.35);
        }else{
            m.put("田赛投掷",0.35);
        }
        if(m.get("游泳长泳")!=null){
            m.put("游泳长泳",m.get("游泳长泳")+0.35);
        }else{
            m.put("游泳长泳",0.35);
        }
        return m;
    }

    @Override
    public Map<String, Double> mentallyD(Map<String, Double> m) {


        return m;
    }

    @Override
    public Map<String, Double> selfControllA(Map<String, Double> m) {
        String[] s={"羽毛球","摔跤","乒乓球","排球","散打","径赛短跑类","篮球","足球","田赛投掷类","田赛跳跃类","体育舞蹈",   "武术","举重","体操","游泳","径赛中长跑类","滑板","滑雪","马术","高尔夫","网球","冰壶"};
        for (int i = 0; i < s.length; i++) {
            if(m.get(s[i])!=null){
                m.put(s[i],m.get(s[i])+0.35);
            }else{
                m.put(s[i],0.35);
            }
        }
        return m;
    }

    @Override
    public Map<String, Double> selfControllB(Map<String, Double> m) {
        String[] s={"武术","体操","体育舞蹈","散打","篮球","排球","足球","帆船","赛艇"};
        for (int i = 0; i < s.length; i++) {
            if(m.get(s[i])!=null){
                m.put(s[i],m.get(s[i])+0.35);
            }else{
                m.put(s[i],0.35);
            }
        }
        return m;
    }

    @Override
    public Map<String, Double> selfControllC(Map<String, Double> m) {
        String[] s={"田赛跳跃类","田赛投掷类","举重","游泳"};
        for (int i = 0; i < s.length; i++) {
            if(m.get(s[i])!=null){
                m.put(s[i],m.get(s[i])+0.35);
            }else{
                m.put(s[i],0.35);
            }
        }
        return m;
    }

    @Override
    public Map<String, Double> hartA(Map<String, Double> m) {
        String[] s={"田赛跳跃类","游泳","体操","田赛投掷类","举重","径赛短跑类","径赛中长跑类","帆船","赛艇","滑雪"};
        for (int i = 0; i < s.length; i++) {
            if(m.get(s[i])!=null){
                m.put(s[i],m.get(s[i])+0.35);
            }else{
                m.put(s[i],0.35);
            }
        }
        return m;
    }

    @Override
    public Map<String, Double> hartB(Map<String, Double> m) {

        return m;
    }

    @Override
    public Map<String, Double> hartC(Map<String, Double> m) {
        String[] s={"体操","乒乓球","足球","武术","羽毛球","排球","摔跤","篮球","滑板","冰壶","马术","网球"};
        for (int i = 0; i < s.length; i++) {
            if(m.get(s[i])!=null){
                m.put(s[i],m.get(s[i])+0.35);
            }else{
                m.put(s[i],0.35);
            }
        }
        return m;
    }
}
